﻿@model IEnumerable<Fmis21_10.Models.Tournament>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="flat-table flat-table-2">
    <tr>
        @*<th>
            @Html.DisplayNameFor(model => model.TournamentsId)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.TournamentName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Season)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Association)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.State)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Soccertype)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NumberOfRound)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.StartDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndDate)
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.TournamentsId)
        </td>*@
        <td>
            @Html.ActionLink(item.TournamentName, "Details", new { id = item.TournamentId }, new { @class="actionlink" })
            @*@Html.DisplayFor(modelItem => item.TournamentsName)*@
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Season)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Association)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.State)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Soccertype)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NumberOfRound)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.StartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndDate)
        </td>*@
        <td>
            @*@Html.ActionLink("Edit", "Edit", new { id=item.TournamentsId }, new { @class="actionlink" })*@
            
            @Html.ActionLink("Delete", "Delete", new {  id=item.TournamentId }, new { @class="actionlink" })
        </td>
    </tr>
}

</table>
